// ==UserScript==
// @name         佰腾
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!

// @author       You
// @include        *://www.baiten.cn/patent/detail/*
// @grant        none
// @run-at document-start
// ==/UserScript==

(function() {
    //'use strict';
    document.onreadystatechange = function () {
	if (document.readyState === 'complete') {
		var xuhao=prompt("输入序号",'')
        // @run-at document-end
        // @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js

var zlim=$('span.Js_h1_name').text();
zlim=$.trim(zlim)



$("div.Js_patent_view_content ul li:eq(2) label").remove()//先删掉，再用一遍拿出li下的文本
var shenqi=$("div.Js_patent_view_content ul li:eq(2)").text()
shenqi=$.trim(shenqi)


$("div.Js_patent_view_content ul li:eq(5) label").remove()
var mingzi=$("div.Js_patent_view_content ul li:eq(5)").text()//"  李月芳;周振华;何成平 "
mingzi=$.trim(mingzi)

$("div.Js_patent_view_content ul li:eq(3) label").remove()
var shiqi=$("div.Js_patent_view_content ul li:eq(3)").text()//"  20180803 "
shiqi=$.trim(shiqi)
var shiqii=shiqi.slice(0,4)+'-'+shiqi.slice(4,6)+'-'+shiqi.slice(6,8)

var ssss='['+xuhao+']'+mingzi+'.'+zlim+'[P].中国专利:'+shenqi+','+shiqii+'.'

$('ul.abst-info').after('<p>'+ssss+'</p>');


		}
}
})();